import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useAgentStore = defineStore('agent', () => {
  // 状态
  const loading = ref<boolean>(false);

  // 方法
  const setLoading = (loadingState: boolean) => {
    loading.value = loadingState;
  };

  return {
    // 状态
    loading,
    // 方法
    setLoading,
  };
});
